#include <cstdio>
#include <ctime>
#include <filesystem>
#include <ios>
#include <iostream>
#include <locale>
// manipulator
using namespace std;
using namespace filesystem;
int main() {
  path mypath{"C:/windows/win.ini"};
  directory_entry entry{mypath};

  if (entry.exists()) {
    if (entry.is_directory()) {
      std::cout << "It's a directory." << std::endl;
    } else if (entry.is_regular_file()) {
      std::cout << "It's a regular file." << std::endl;
    }
  } else {
    std::cout << "The path does not exist." << std::endl;
  }
}